#!/bin/ksh

cp -a parse_jobstream.h scan_jobstream.l ../build
cd ../build
flex -8 -i -oscan_jobstream.c scan_jobstream.l
gcc -c -Wall -O3 -DTESTSCAN -o scan_jobstream.o scan_jobstream.c
gcc -O3 -Wall -o scan_jobstream scan_jobstream.o -lfl
./scan_jobstream ../test/jobstream.txt 2>&1|less
exit 0

